package ar.com.raulsanchez.syncrolist;

import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;

public class DatePickerFragment extends DialogFragment{

	private int year;
	private int month;
	private int day;
	
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        return new DatePickerDialog(getActivity(), (ActivityEditActivity)getActivity(), year, month, day);
    }

    public void setDate(int y, int m, int d) {
    	year  = y;
    	month = m-1;
    	day   = d;
    }
}